home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000649_julian@vxcrna.cern.ch _Wed Feb 10 16:51:30 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  6KB

  1. Return-Path: <julian@vxcrna.cern.ch>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA02605; Wed, 10 Feb 93 16:51:30 MET
  4. Received: from VXCERN.DECnet MAIL11D_V3 by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  5.     id AA05285; Wed, 10 Feb 1993 16:54:51 +0100
  6. Date: Wed, 10 Feb 1993 16:54:51 +0100
  7. Message-Id: <9302101554.AA05285@dxmint.cern.ch>
  8. From: julian@vxcrna.cern.ch (Julian Bunn. CN Division, CERN. 41 22 767 5029, beep 5551)
  9. X-Vms-To: MINT::marca@ncsa.uiuc.edu
  10. X-Vms-Cc: MINT::SYSTEM@LNS61.TN.CORNELL.EDU,MINT::www-talk@info,JULIAN
  11. Subject: VMS Port of XMosaic
  12. X-Mail11-Ostype: VAX/VMS
  13. Apparently-To: <www-talk@info>
  14. Apparently-To: <system@lns61.tn.cornell.edu>
  15. Apparently-To: <marca@ncsa.uiuc.edu>
  16.  
  17.  
  18.     TimBL asked me to pass on details of the VMS port. Although it seemed
  19. rather tricky at the time, the actual changes for VMS are simple. Instead
  20. of sending you the diff -c results, they can be summarised as:
  21.  
  22.     1) In gui.c, #ifdef VMS to avoid including unistd.h
  23.     2) In main.c, #ifdef VMS then do not signal SIGUSR1 (ugly fix)
  24.     3) In Xresources.h I had to change all 17 point fonts to 18 point,
  25.        as the DECwindows MOTIF seems to lack them. I also changed
  26.        the anchor colour to Red instead of hex 9f, since some people's
  27.        X defaults specified a blue background, so making the anchors
  28.        invisible!
  29.     4) STRDUP was missing from VMS, and from the Ultrix system I used.
  30.        So I included a version as a separate file.
  31.  
  32. Finally, I wrote a little VMS command file that does the compile and
  33. link for VMS systems running Multinet. This is included below, as is
  34. STRDUP.
  35.  
  36.  
  37. VMS_MAKE.COM
  38. -------------------------------------------------------------------------
  39. $!========================================================================
  40. $!
  41. $! Name      : VMS_MAKE
  42. $!
  43. $! Purpose   : Make the VMS version of XMosaic
  44. $!
  45. $! Arguments : None
  46. $!
  47. $! Created  10-FEB-1993   Julian J. Bunn
  48. $!
  49. $!========================================================================
  50. $   ON ERROR     THEN $ GOTO EXIT
  51. $   ON CONTROL_Y THEN $ GOTO EXIT
  52. $ copy sys$input sys$output
  53.  
  54.   Procedure for making XMosaic. This procedure expects to find the
  55.   /src files in the current directory, the /libhtmlw sources in a
  56.   subdirectory [.libhtmlw] and the /libwww sources in a subdirectory
  57.   [.libwww]. This version produces an executable for Multinet TCP/IP.
  58.   UCX and Wollongong versions can be created by changing the CC compile
  59.   flag appropriately (UCX or WIN_TCP respectively).
  60.  
  61.  
  62. $ if f$search("libhtmlw.dir") .eqs. ""
  63. $ then
  64. $    write sys$output "You need directory [.libhtmlw]"
  65. $    exit
  66. $ endif
  67. $ if f$search("libwww.dir") .eqs. ""
  68. $ then
  69. $    write sys$output "You need directory [.libwww]"
  70. $    exit
  71. $ endif
  72. $ library/create libhtmlw.olb
  73. $ write sys$output "Compiling source in LIBHTMLW"
  74. $ set def [.libhtmlw]
  75. $ delete *.obj.*
  76. $loop1:
  77. $ file = f$search("*.c")
  78. $ if file .eqs. "" then goto end_loop1
  79. $ write sys$output "File : ''file'"
  80. $ cc /nowarn 'file
  81. $ if $severity 
  82. $ then 
  83. $    library/ins [-]libhtmlw *.obj
  84. $    delete *.obj.*
  85. $ endif
  86. $ goto loop1
  87. $end_loop1:
  88. $ library/create [-]libwww.olb
  89. $ set def [-.libwww]
  90. $ write sys$output "Compiling source in LIBWWW"
  91. $ delete *.obj.*
  92. $loop2:
  93. $ file = f$search("*.c")
  94. $ if file .eqs. "" then goto end_loop2
  95. $ write sys$output "File : ''file'"
  96. $ cc /nowarn/define=(multinet=1) 'file
  97. $ if $severity 
  98. $ then 
  99. $    library/ins [-]libwww *.obj
  100. $    delete *.obj.*
  101. $ endif
  102. $ goto loop2
  103. $end_loop2:
  104. $ write sys$output "Compiling source in []"
  105. $ set def [-]
  106. $ delete *.obj.*
  107. $loop3:
  108. $ file = f$search("*.c")
  109. $ if file .eqs. "" then goto end_loop3
  110. $ write sys$output "File : ''file'"
  111. $ cc /nowarn 'file
  112. $ goto loop3
  113. $end_loop3:
  114. $ write sys$output "Linking all files. Expect warnings."
  115. $! Note that this is without DTM
  116. $ ass/user sys$input sys$command
  117. $ link/exe=xmosaic main,gui,mo-www,mo-dtm,xmx,xmx2,strdup,-
  118.   libwww/lib,libhtmlw/lib,sys$input/opt
  119. multinet_socket_library/share
  120. sys$share:decw$xmlibshr/share
  121. sys$share:decw$xmulibshr/share
  122. $
  123. $ write sys$output "Finished."
  124. $ directory/size=all/prot xmosaic.exe
  125. $EXIT:
  126. $   EXIT
  127.  
  128. -----------------------------------------------------------------------
  129. STRDUP.C
  130. -----------------------------------------------------------------------
  131. /* strdup.c -- return a newly allocated copy of a string
  132.    Copyright (C) 1990 Free Software Foundation, Inc.
  133.  
  134.    This program is free software; you can redistribute it and/or modify
  135.    it under the terms of the GNU General Public License as published by
  136.    the Free Software Foundation; either version 2, or (at your option)
  137.    any later version.
  138.  
  139.    This program is distributed in the hope that it will be useful,
  140.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  141.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  142.    GNU General Public License for more details.
  143.  
  144.    You should have received a copy of the GNU General Public License
  145.    along with this program; if not, write to the Free Software
  146.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  147.  
  148. #ifdef STDC_HEADERS
  149. #include <string.h>
  150. #include <stdlib.h>
  151. #else
  152. char *malloc ();
  153. char *strcpy ();
  154. #endif
  155.  
  156. /* Return a newly allocated copy of STR,
  157.    or 0 if out of memory. */
  158.  
  159. char *
  160. strdup (str)
  161.      char *str;
  162. {
  163.   char *newstr;
  164.  
  165.   newstr = (char *) malloc (strlen (str) + 1);
  166.   if (newstr)
  167.     strcpy (newstr, str);
  168.   return newstr;
  169. }
  170.  
  171. -------------------------------------------------------------------------
  172.  
  173.  
  174. Hope this information is of use.
  175.                                    Julian